﻿namespace Gqq.Csharpindepth.Common
{
    /// <summary>
    /// 自己模拟的委托，类似于Func(泛型委托)
    /// </summary>
    /// <typeparam name="T">输入的类型</typeparam>
    /// <typeparam name="TResult">输出的类型</typeparam>
    /// <param name="arg">参数</param>
    /// <returns></returns>
    public delegate TResult GqqFunc<in T, out TResult>(T arg);

    public delegate void OutputHandler1(GqqBase gb);
    public delegate void OutputDerivedHandler(GqqDerive gb);
    
}
